<template>
    <div id="app">
        <keep-alive :include="cachedViews">
            <router-view />
        </keep-alive>
    </div>
</template>

<script>
export default {
    created() {
        console.log('INIT APP');
        this.$store.dispatch('loadNavBar');
        this.$store.dispatch('loadRouterMap');
    },
    data() {
        return {
            cachedViews: ['Latest', 'Search', 'Category'],
        };
    },
    metaInfo: {
        title: '中南大学软件学院',
        meta: [
            { charset: 'utf-8' },
            {
                name: 'viewport',
                content:
                    'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=false',
            },
        ],
    },
};
</script>

<style lang="scss"></style>
